﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Teigha.Geometry;

namespace TeighaHelper.Core
{
    public static class Transformer
    {

        public static double MilliToFeet(this double mill)
        {
            return mill / 304.8;
        }

        public static PointLoc Point3dToPointLoc(this Point3d point)
        {
            PointLoc pointLoc = new PointLoc(point.X.MilliToFeet(), point.Y.MilliToFeet(), point.Z.MilliToFeet());
            return pointLoc;
        }

        public static PointLoc Vector3dToPointLoc(this Vector3d point)
        {
            PointLoc pointLoc = new PointLoc(point.X.MilliToFeet(), point.Y.MilliToFeet(), point.Z.MilliToFeet());
            return pointLoc;
        }

    }
}
